-- GENERATED SPELL FOR [Vengeful Kvaldir Spirit] --


function spell0_25224(pUnit, Event) --@Disease Cloud,Self--
pUnit:FullCastSpellOnTarget(50106,pUnit)
pUnit:RegisterEvent('Sorts_25224', 0, 1)
end

function Sorts_25224(pUnit, Event)
local choix_sorts_25224 = math.random(0, 0)
if choix_sorts_25224 == 0 then
pUnit:RegisterEvent('spell0_25224', 1, 1)
end
end

function mob25224_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25224', math.random(1500, 3000), 1)
end

function mob25224_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25224_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25224_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25224, 1, 'mob25224_Action')
RegisterUnitEvent(25224, 2, 'mob25224_Leave')
RegisterUnitEvent(25224, 3, 'mob25224_Kill')
RegisterUnitEvent(25224, 4, 'mob25224_Die')
